package com.zhang.common.config;

import org.springframework.boot.context.properties.ConfigurationProperties;
import org.springframework.stereotype.Component;

/**
 * mybatis 参数读取文件
 * @author zhangxin
 * @date 2021/7/1
 */
@Component
@ConfigurationProperties(prefix = "mybatis-plus")
public class MybatisProperties {
    private String[] mapperLocations;

    private String[] typeAliasesPackage;


    public String[] getMapperLocations() {
        return mapperLocations;
    }

    public void setMapperLocations(String[] mapperLocations) {
        this.mapperLocations = mapperLocations;
    }

    public String[] getTypeAliasesPackage() {
        return typeAliasesPackage;
    }

    public void setTypeAliasesPackage(String[] typeAliasesPackage) {
        this.typeAliasesPackage = typeAliasesPackage;
    }
}
